<template>
	<view class="content">
		<view class="header">
			<!--  手机顶部高度 -->
			<view class="navbar" :style="{height: systemBarHeight + 'px'}">
			</view>

			<view class="header_tit">
				<text>论坛</text>
			</view>

			<!-- banner -->
			<view class="swiper">
				<swiper :indicator-dots="false" :autoplay="true" :interval="3000" :duration="1000">
					<swiper-item>
						<view class="swiper-item">
							<image src="/static/logo.png" mode=""></image>
						</view>
					</swiper-item>
					<swiper-item>
						<view class="swiper-item">
							<image src="/static/logo.png" mode=""></image>
						</view>
					</swiper-item>
				</swiper>
			</view>

			<!-- 公告 -->
			<view class="notice">
				<view class="notice_lf">
					<image src="/static/gonggao.png" mode=""></image>
				</view>
				<view class="notice_ts">
					<text>公告</text>
				</view>
				<view class="notice_tit">
					<uni-notice-bar style="margin-top: 20rpx;" scrollable single ba backgroundColor="#EDF5FD"
						color="#152034" text="你的信息已审核通过啦，恭喜你~"></uni-notice-bar>
				</view>
			</view>
		</view>

		<view class="paa">
			<view class="tabs">
				<v-tabs v-model="current" :tabs="tabs" field="name" color="#7D8CA4" active-color="#152034" :bold="true"
					line-height="8rpx" l :line-scale="0.3" line-color="#386AF6" padding-item="0 30rpx"
					@change="changeTab"></v-tabs>
			</view>

			<view class="list">

				<view class="list_item">
					<view class="list_item_tit">
						<text>智能化普及风暴，零跑全新机器人时代2月上市定位3ss级别别别影响力接口连接离开蛔…</text>
					</view>
					<view class="list_item_browse">
						<text>孙悟空 · 88浏览 · 999评论</text>
						<view class="list_item_zhiding">
							<text>置顶</text>
						</view>
					</view>
				</view>
				<!-- list类型==0 -->
				<view class="list_item1">
					<view class="list_item1_lf">
						<view class="list_item1_lf_tit">
							<text>智能化普及风暴，零跑全新机器人时代2月上市定位…</text>
						</view>
						<view class="list_item1_lf_browse">
							<text>孙悟空 · 88浏览 · 999评论</text>
							<view class="list_item_zhiding">
								<text>置顶</text>
							</view>
						</view>
					</view>

					<view class="list_item1_rg">
						<image src="/static/logo.png" mode=""></image>
					</view>
				</view>

				<!-- list 类型=1 -->
				<view class="list_item2">
					<view class="video_tit">
						智能化普及风暴，零跑全新机器人时代2月上市定位3ss级别
					</view>
					<view class="list_item2_video">
						<view class="video1">
							<image src="/static/logo.png" mode=""></image>
						</view>
						<image src="/static/bofang.png" mode=""></image>
						<view class="video2">
							<text>99:99</text>
						</view>
					</view>
					<view class="list_item2_browse">
						<text>孙悟空 · 88浏览 · 999评论</text>
						<view class="list_item_zhiding">
							<text>置顶</text>
						</view>
					</view>
				</view>
				<!-- list类型==2 -->
				<view class="list_item3">
					<view class="list_item3_tit">
						<text>智能化普及风暴，零跑全新机器人时代2月上市定位3ss级别</text>
					</view>
					<view class="list_item3_item">
						<view class="list_item3_item_img">
							<image src="/static/logo.png" mode=""></image>
						</view>
						<view class="list_item3_item_img">
							<image src="/static/logo.png" mode=""></image>
						</view>
						<view class="list_item3_item_img">
							<image src="/static/logo.png" mode=""></image>
						</view>
					</view>
					<view class="list_item3_browse">
						<text>孙悟空 · 88浏览 · 999评论</text>
						<view class="list_item_zhiding">
							<text>置顶</text>
						</view>
					</view>
				</view>
				<!-- list 类型=4 -->
				<view class="list_item4">
					<view class="list_item4_lf">
						<image src="/static/logo.png" mode=""></image>
					</view>
					<view class="list_item4_rg">
						<view class="list_item4_rg_tit">
							<text>CyberDog仿生四足机器人（工程探索版）</text>
						</view>
						<view class="list_item4_rg_bom">
							<view class="list_item4_rg_bom_type">
								<text class="type1">身高</text>
								<text class="type2">400mm</text>
							</view>
							<view class="list_item4_rg_bom_type">
								<text class="type1">身高</text>
								<text class="type2">400mm</text>
							</view>

							<view class="confirm">
								<button type="default">去咨询</button>
							</view>
						</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemBarHeight: 0,

				current: 2,
				tabs: [{
						id: 1,
						name: '全部',
						disabled: false
					},
					{
						id: 2,
						name: '热门',
						disabled: false
					},
					{
						id: 3,
						name: '推荐',
						disabled: false
					},
					{
						id: 4,
						name: '设备',

					},
				]
			}
		},
		mounted() {
			this.getSysteminfo()
		},
		methods: {
			/* 手机顶部高度 */
			getSysteminfo() {
				uni.getSystemInfo({
					success: res => {
						this.systemBarHeight = res.statusBarHeight;
					}
				});
			},
			changeTab(index) {
				console.log('当前选中索引：' + index)

			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {

		width: 750rpx;
		height: 2000rpx;
		background: #F4F6F9;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.header {
		background: #ffffff;
		padding-bottom: 45rpx;
	}

	.header_tit {


		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 31rpx;
		color: #000000;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.swiper {
		margin-top: 15rpx;

		.swiper-item {
			width: 689rpx;
			height: 267rpx;
			border-radius: 15rpx 15rpx 15rpx 15rpx;
			margin: auto;

			>image {
				width: 689rpx;
				height: 267rpx;
			}
		}
	}

	.notice {
		width: 91%;
		height: 88rpx;
		background: #EDF5FD;
		border-radius: 15rpx 15rpx 15rpx 15rpx;
		margin: 30rpx auto 0;
		display: flex;
		align-items: center;

		.notice_lf {
			margin-left: 30rpx;

			>image {
				width: 34.35rpx;
				height: 34.35rpx;
			}
		}

		.notice_ts {
			width: 65rpx;
			height: 34rpx;
			background: #FDF7F2;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			border: 1rpx solid #FF4500;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-left: 16rpx;

			>text {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 23rpx;
				color: #FF4500;
			}
		}

		.notice_tit {
			font-family: PingFang SC, PingFang SC;
			font-weight: 500;
			font-size: 27rpx;
			color: #152034;
			margin-left: 15rpx;
			width: 600rpx;
			padding-top: 20rpx;

		}
	}

	.paa {
		margin-top: 15rpx;
		background: #ffffff;

		.tabs {
			padding-bottom: 30rpx;
			padding-top: 10rpx;
			width: 91%;
			margin: auto;
		}
	}

	.list {
		width: 91%;
		margin: auto;

		.list_item {

			padding-bottom: 21rpx;
			margin-bottom: 21rpx;
			border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);

			.list_item_tit {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 31rpx;
				color: #152034;
				display: -webkit-box;
				/* 设置为WebKit内核的弹性盒子模型 */
				-webkit-box-orient: vertical;
				/* 垂直排列 */
				-webkit-line-clamp: 2;
				/* 限制显示三行 */
				overflow: hidden;
				/* 隐藏超出范围的内容 */
				text-overflow: ellipsis;
			}

			.list_item_browse {
				display: flex;
				align-items: center;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 23rpx;
				color: #7D8CA4;
				margin-top: 31rpx;

				.list_item_zhiding {
					margin-left: 30rpx;
					width: 65rpx;
					height: 34rpx;
					background: #E4EFFF;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					border: 1rpx solid #1677FF;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 23rpx;
					color: #1677FF;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
		}

		/* item1 */
		.list_item1 {
			display: flex;
			padding-bottom: 21rpx;
			margin-bottom: 21rpx;
			border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);

			.list_item1_lf {
				display: flex;
				flex-wrap: wrap;

				.list_item1_lf_tit {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 31rpx;
					color: #152034;
					display: -webkit-box;
					/* 设置为WebKit内核的弹性盒子模型 */
					-webkit-box-orient: vertical;
					/* 垂直排列 */
					-webkit-line-clamp: 2;
					/* 限制显示三行 */
					overflow: hidden;
					/* 隐藏超出范围的内容 */
					text-overflow: ellipsis;


				}

				.list_item1_lf_browse {
					display: flex;
					align-items: center;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 23rpx;
					color: #7D8CA4;
					margin-top: 31rpx;
					.list_item_zhiding {
						margin-left: 30rpx;
						width: 65rpx;
						height: 34rpx;
						background: #E4EFFF;
						border-radius: 8rpx 8rpx 8rpx 8rpx;
						border: 1rpx solid #1677FF;
						font-family: PingFang SC, PingFang SC;
						font-weight: 400;
						font-size: 23rpx;
						color: #1677FF;
						display: flex;
						align-items: center;
						justify-content: center;
					}
				}
			}

			.list_item1_rg {
				>image {
					width: 229rpx;
					height: 172rpx;
					border-radius: 0rpx 0rpx 0rpx 0rpx;
				}
			}

		}

		/* item2 */
		.list_item2 {
			padding-bottom: 21rpx;
			margin-bottom: 21rpx;
			border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);

			.video_tit {

				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 31rpx;
				color: #071F3A;

			}


			.list_item2_video {

				margin-top: 26rpx;
				display: flex;
				align-items: center;

				width: 691rpx;
				position: relative;
				justify-content: center;

				.video1 {

					>image {
						width: 691rpx;
						height: 389rpx;
						border-radius: 0rpx 0rpx 0rpx 0rpx;
					}
				}

				>image {
					width: 107.17rpx;
					height: 109.01rpx;
					position: absolute;
					z-index: 1;
					margin: auto;
					top: auto;

					bottom: auto;

				}

				.video2 {
					width: 80rpx;
					position: absolute;
					bottom: 0;
					right: 15rpx;
					bottom: 30rpx;
					z-index: 11;
					height: 35rpx;
					background: rgba(0, 0, 0, 0.3);
					border-radius: 4rpx 4rpx 4rpx 4rpx;


					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 23rpx;
					color: #FFFFFF;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}

			.list_item2_browse {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 23rpx;
				color: #7D8CA4;
				margin-top: 15rpx;
				display: flex;
				align-items: center;
				.list_item_zhiding {
					margin-left: 30rpx;
					width: 65rpx;
					height: 34rpx;
					background: #E4EFFF;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					border: 1rpx solid #1677FF;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 23rpx;
					color: #1677FF;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
		}

		/* item3 */
		.list_item3 {
			padding-bottom: 21rpx;
			margin-bottom: 21rpx;
			border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);

			.list_item3_tit {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 31rpx;
				color: #152034;
				/* 设置为WebKit内核的弹性盒子模型 */
				-webkit-box-orient: vertical;
				/* 垂直排列 */
				-webkit-line-clamp: 2;
				/* 限制显示三行 */
				overflow: hidden;
				/* 隐藏超出范围的内容 */
				text-overflow: ellipsis;
			}

			.list_item3_item {
				display: flex;
				justify-content: space-between;
				margin-top: 15rpx;

				.list_item3_item_img {
					>image {
						width: 218rpx;
						height: 168rpx;
						border-radius: 0rpx 0rpx 0rpx 0rpx;
					}
				}
			}

			.list_item3_browse {
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 23rpx;
				color: #7D8CA4;
				margin-top: 15rpx;
				display: flex;
				align-items: center;
				.list_item_zhiding {
					margin-left: 30rpx;
					width: 65rpx;
					height: 34rpx;
					background: #E4EFFF;
					border-radius: 8rpx 8rpx 8rpx 8rpx;
					border: 1rpx solid #1677FF;
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 23rpx;
					color: #1677FF;
					display: flex;
					align-items: center;
					justify-content: center;
				}
			}
		}

		/* item4 */
		.list_item4 {
			padding-bottom: 21rpx;
			margin-bottom: 21rpx;
			border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
			display: flex;

			.list_item4_lf {
				>image {
					width: 229rpx;
					height: 172rpx;
					border-radius: 0rpx 0rpx 0rpx 0rpx;
				}
			}

			.list_item4_rg {
				margin-left: 30.50rpx;

				.list_item4_rg_tit {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 31rpx;
					color: #152034;
				}

				.list_item4_rg_bom {
					display: flex;
					align-items: center;
					margin-top: 15.27rpx;

					.list_item4_rg_bom_type {
						display: flex;
						flex-direction: column;

						margin-right: 45rpx;
						height: 65rpx;

						.type1 {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 23rpx;
							color: #7D8CA4;
						}

						.type2 {
							font-family: PingFang SC, PingFang SC;
							font-weight: 400;
							font-size: 23rpx;
							color: #45516B;
							margin-top: auto;

						}


					}


				}
			}
		}
	}

	.confirm {
		margin-left: auto;

		>button {
			width: 153rpx;
			height: 69rpx;
			background: #1677FF;
			border-radius: 42rpx 42rpx 42rpx 42rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 27rpx;
			color: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
		}

		>button::after {
			border: none;
		}

	}
</style>